package bairui.international.console.web.controller.barter.property.item;

import com.sh_lianjing.file.excel.read.annotation.*;
import com.sh_lianjing.file.excel.read.*;

/**
 *
 * ExcelInput_ExcelImport_Excel_Input
 *
 */
@SuppressWarnings("serial")
class ExcelInput_ExcelImport_Excel_Input {

	@ReadExcel
	static public class Model
	 extends bairui.international.model.domain.jpa.TB_ProductPropertyItem
	{
	
		@ReadExcelCell(headPattern = "\\s*名称\\s*", required=true, allowConvertFail=false)
		@org.hibernate.validator.constraints.NotBlank
		@javax.validation.constraints.Size(min=0, max=30)
		@Override
		public String getName() {
			return (String)super.getName();
		}
	
		@ReadExcelDefaultValue("0")
		@ReadExcelCell(headPattern = "\\s*排序\\s*", required=true, allowConvertFail=false)
		@javax.validation.constraints.NotNull
		@javax.validation.constraints.Max(Integer.MAX_VALUE)
		@javax.validation.constraints.Min(Integer.MIN_VALUE)
		@Override
		public Integer getOrderValue() {
			return (Integer)super.getOrderValue();
		}
	
		@ReadExcelCell(headPattern = "\\s*备注\\s*", required=false, allowConvertFail=false)
		@javax.validation.constraints.Size(min=0, max=255)
		@Override
		public String getComment() {
			return (String)super.getComment();
		}
	
		/**
		 * 非继承属性
		 */
	
		/**
		 * 得到输入属性
		 */
		/** 得到名称 */
		public String gainName() {
			return this.getName();
		}
		/** 得到排序 */
		public Integer gainOrderValue() {
			return this.getOrderValue();
		}
		/** 得到备注 */
		public String gainComment() {
			return this.getComment();
		}
	
	
	}
	

	/**
	 * 文件属性
	 */
	private org.springframework.web.multipart.MultipartFile excelFile;
	
	/**
	 * 文件方法
	 */
	@com.lianjing.sh.model.common.annotation.Comment("Excel文档")
	
	@com.lianjing.sh.validate.file.FileNotEmpty
	@com.lianjing.sh.validate.file.FileType()
	public org.springframework.web.multipart.MultipartFile getExcelFile() {
		return this.excelFile;
	}
	public void setExcelFile(org.springframework.web.multipart.MultipartFile excelFile) {
		this.excelFile = excelFile;
	}

}
